package com.xln.util;

import net.sf.jsqlparser.statement.create.table.Index;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String getCurrentDateDir() {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//        String dateTime = sdf.format(new Date());
//        String month = dateTime.substring(dateTime.indexOf("-")+1, dateTime.lastIndexOf("-"));
//        System.out.printf(month);
        return sdf.format(new Date());

    }
}
